#ifndef hppitem
#define hppitem
#include "common.hpp"

class tile;
class ship;

class item : public sf::Drawable
{
protected:
	sf::VertexArray quad;
	std::shared_ptr<sf::Texture> quadTex;
	std::weak_ptr<ship> curShip;

    virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const;

public:
	int rPriority;
	int texID;
	sf::Vector2i dim;
	sf::Vector2f pos;

	item();

	virtual void damage(int HPoff);

	void setTexID(int id);

	void setPos(sf::Vector2f inpos);

	tile * getTile();

};


#endif // hppitem
